//
//  FIDataSourceFacade.m
//  Magpie
//
//  Created by 100TV protocal on 12-11-14.
//
//

#import "FIDataSourceFacade.h"
#import "FIRequestCheckVersion.h"
#import "FIYYDataSource.h"
#import "FIRequestInterfaceActive.h"

@implementation FIDataSourceFacade

+(FIYYDataSource*) dataSource{
	return [FIYYDataSource dataSource];
}

+(void) requestInterfaceActive: (id) atarget action:(SEL) aaction {
	FIInterfaceActiveRequset *request = [[FIInterfaceActiveRequset alloc] initWithInterface: atarget action:aaction];
	[[FIDataSourceFacade dataSource] startRequest:request];
	[request release];
}

+(void) requestCheckVersion:(NSString *) ver clientPlatform:(NSString *)platform  source:(NSString *)asource target:(id)atarget action:(SEL)aaction {
	FIRequestCheckVersion *request = [[FIRequestCheckVersion alloc] initWithClientVer:(NSString *)ver
                                                                       clientPlatform:(NSString *)platform
                                                                               source:(NSString *)asource
                                                                               target:(id)atarget
                                                                               action:(SEL)aaction];
	[[FIDataSourceFacade dataSource] startRequest:request];
	[request release];
}

@end
